package parse;
import ErrorMsg.ErrorMsg;


class Yylex implements Lexer {
	private final int YY_BUFFER_SIZE = 512;
	private final int YY_F = -1;
	private final int YY_NO_STATE = -1;
	private final int YY_NOT_ACCEPT = 0;
	private final int YY_START = 1;
	private final int YY_END = 2;
	private final int YY_NO_ANCHOR = 4;
	private final int YY_BOL = 128;
	private final int YY_EOF = 129;

  private int comment_count = 0;
  private String result_s = "";
  private int str_l = 0;
  private int str_r = 0;

  private void newline() {
    errorMsg.newline(yychar+1);
  }
  private void err(int pos, String s) {
    errorMsg.error(pos,s);
  }
  private void err(String s) {
    err(yychar,s);
  }
  private java_cup.runtime.Symbol tok(int kind, Object value) {
    return new java_cup.runtime.Symbol(kind, yychar, yychar+yylength(), value);
  }
  private ErrorMsg errorMsg;
  Yylex(java.io.InputStream s, ErrorMsg e) {
    this(s);
    errorMsg=e;
  }
  private String escape_sequence(String seq)
  {
      char tempc = 0;
      String temps = "";
      if("\\t".equals(seq)) 
          tempc= '\t';
      else
      if("\\n".equals(seq)) 
          tempc= '\n';
      else
      if("\\".equals(seq)) 
          tempc= '\\';
      else
      if("\\\"".equals(seq))
          tempc= '"';
      else
      if(seq.length()==4 && seq.charAt(0)=='\\' && Character.isDigit(seq.charAt(1)) &&
         Character.isDigit(seq.charAt(2)) && Character.isDigit(seq.charAt(3)))
      {
         int tmp=0;
         tmp=(seq.charAt(1)-48)*100 + (seq.charAt(2)-48)*10 + (seq.charAt(3)-48);
         if(tmp<256&&tmp>=0)
         tempc= (char)tmp;
         else
         {
             err("Error: Illegal escape sequence.");
             return "";
         }
      }
      else
      if(seq.length()==3 && seq.charAt(0)=='\\' && seq.charAt(1)=='^' && seq.charAt(2)>=64 && seq.charAt(2)<= 95)
	tempc=(char)(seq.charAt(2)-64);
      if(tempc!=0)temps+=tempc;
      return temps;
  }
	private java.io.BufferedReader yy_reader;
	private int yy_buffer_index;
	private int yy_buffer_read;
	private int yy_buffer_start;
	private int yy_buffer_end;
	private char yy_buffer[];
	private int yychar;
	private boolean yy_at_bol;
	private int yy_lexical_state;

	Yylex (java.io.Reader reader) {
		this ();
		if (null == reader) {
			throw (new Error("Error: Bad input stream initializer."));
		}
		yy_reader = new java.io.BufferedReader(reader);
	}

	Yylex (java.io.InputStream instream) {
		this ();
		if (null == instream) {
			throw (new Error("Error: Bad input stream initializer."));
		}
		yy_reader = new java.io.BufferedReader(new java.io.InputStreamReader(instream));
	}

	private Yylex () {
		yy_buffer = new char[YY_BUFFER_SIZE];
		yy_buffer_read = 0;
		yy_buffer_index = 0;
		yy_buffer_start = 0;
		yy_buffer_end = 0;
		yychar = 0;
		yy_at_bol = true;
		yy_lexical_state = YYINITIAL;
	}

	private boolean yy_eof_done = false;
	private final int STRING = 1;
	private final int YYINITIAL = 0;
	private final int NEWLINE = 2;
	private final int yy_state_dtrans[] = {
		0,
		62,
		76
	};
	private void yybegin (int state) {
		yy_lexical_state = state;
	}
	private int yy_advance ()
		throws java.io.IOException {
		int next_read;
		int i;
		int j;

		if (yy_buffer_index < yy_buffer_read) {
			return yy_buffer[yy_buffer_index++];
		}

		if (0 != yy_buffer_start) {
			i = yy_buffer_start;
			j = 0;
			while (i < yy_buffer_read) {
				yy_buffer[j] = yy_buffer[i];
				++i;
				++j;
			}
			yy_buffer_end = yy_buffer_end - yy_buffer_start;
			yy_buffer_start = 0;
			yy_buffer_read = j;
			yy_buffer_index = j;
			next_read = yy_reader.read(yy_buffer,
					yy_buffer_read,
					yy_buffer.length - yy_buffer_read);
			if (-1 == next_read) {
				return YY_EOF;
			}
			yy_buffer_read = yy_buffer_read + next_read;
		}

		while (yy_buffer_index >= yy_buffer_read) {
			if (yy_buffer_index >= yy_buffer.length) {
				yy_buffer = yy_double(yy_buffer);
			}
			next_read = yy_reader.read(yy_buffer,
					yy_buffer_read,
					yy_buffer.length - yy_buffer_read);
			if (-1 == next_read) {
				return YY_EOF;
			}
			yy_buffer_read = yy_buffer_read + next_read;
		}
		return yy_buffer[yy_buffer_index++];
	}
	private void yy_move_end () {
		if (yy_buffer_end > yy_buffer_start &&
		    '\n' == yy_buffer[yy_buffer_end-1])
			yy_buffer_end--;
		if (yy_buffer_end > yy_buffer_start &&
		    '\r' == yy_buffer[yy_buffer_end-1])
			yy_buffer_end--;
	}
	private boolean yy_last_was_cr=false;
	private void yy_mark_start () {
		yychar = yychar
			+ yy_buffer_index - yy_buffer_start;
		yy_buffer_start = yy_buffer_index;
	}
	private void yy_mark_end () {
		yy_buffer_end = yy_buffer_index;
	}
	private void yy_to_mark () {
		yy_buffer_index = yy_buffer_end;
		yy_at_bol = (yy_buffer_end > yy_buffer_start) &&
		            ('\r' == yy_buffer[yy_buffer_end-1] ||
		             '\n' == yy_buffer[yy_buffer_end-1] ||
		             2028/*LS*/ == yy_buffer[yy_buffer_end-1] ||
		             2029/*PS*/ == yy_buffer[yy_buffer_end-1]);
	}
	private java.lang.String yytext () {
		return (new java.lang.String(yy_buffer,
			yy_buffer_start,
			yy_buffer_end - yy_buffer_start));
	}
	private int yylength () {
		return yy_buffer_end - yy_buffer_start;
	}
	private char[] yy_double (char buf[]) {
		int i;
		char newbuf[];
		newbuf = new char[2*buf.length];
		for (i = 0; i < buf.length; ++i) {
			newbuf[i] = buf[i];
		}
		return newbuf;
	}
	private final int YY_E_INTERNAL = 0;
	private final int YY_E_MATCH = 1;
	private java.lang.String yy_error_string[] = {
		"Error: Internal error.\n",
		"Error: Unmatched input.\n"
	};
	private void yy_error (int code,boolean fatal) {
		java.lang.System.out.print(yy_error_string[code]);
		java.lang.System.out.flush();
		if (fatal) {
			throw new Error("Fatal Error.\n");
		}
	}
	private int[][] unpackFromString(int size1, int size2, String st) {
		int colonIndex = -1;
		String lengthString;
		int sequenceLength = 0;
		int sequenceInteger = 0;

		int commaIndex;
		String workString;

		int res[][] = new int[size1][size2];
		for (int i= 0; i < size1; i++) {
			for (int j= 0; j < size2; j++) {
				if (sequenceLength != 0) {
					res[i][j] = sequenceInteger;
					sequenceLength--;
					continue;
				}
				commaIndex = st.indexOf(',');
				workString = (commaIndex==-1) ? st :
					st.substring(0, commaIndex);
				st = st.substring(commaIndex+1);
				colonIndex = workString.indexOf(':');
				if (colonIndex == -1) {
					res[i][j]=Integer.parseInt(workString);
					continue;
				}
				lengthString =
					workString.substring(colonIndex+1);
				sequenceLength=Integer.parseInt(lengthString);
				workString=workString.substring(0,colonIndex);
				sequenceInteger=Integer.parseInt(workString);
				res[i][j] = sequenceInteger;
				sequenceLength--;
			}
		}
		return res;
	}
	private int yy_acpt[] = {
		/* 0 */ YY_NOT_ACCEPT,
		/* 1 */ YY_NO_ANCHOR,
		/* 2 */ YY_NO_ANCHOR,
		/* 3 */ YY_NO_ANCHOR,
		/* 4 */ YY_NO_ANCHOR,
		/* 5 */ YY_NO_ANCHOR,
		/* 6 */ YY_NO_ANCHOR,
		/* 7 */ YY_NO_ANCHOR,
		/* 8 */ YY_NO_ANCHOR,
		/* 9 */ YY_NO_ANCHOR,
		/* 10 */ YY_NO_ANCHOR,
		/* 11 */ YY_NO_ANCHOR,
		/* 12 */ YY_NO_ANCHOR,
		/* 13 */ YY_NO_ANCHOR,
		/* 14 */ YY_NO_ANCHOR,
		/* 15 */ YY_NO_ANCHOR,
		/* 16 */ YY_NO_ANCHOR,
		/* 17 */ YY_NO_ANCHOR,
		/* 18 */ YY_NO_ANCHOR,
		/* 19 */ YY_NO_ANCHOR,
		/* 20 */ YY_NO_ANCHOR,
		/* 21 */ YY_NO_ANCHOR,
		/* 22 */ YY_NO_ANCHOR,
		/* 23 */ YY_NO_ANCHOR,
		/* 24 */ YY_NO_ANCHOR,
		/* 25 */ YY_NO_ANCHOR,
		/* 26 */ YY_NO_ANCHOR,
		/* 27 */ YY_NO_ANCHOR,
		/* 28 */ YY_NO_ANCHOR,
		/* 29 */ YY_NO_ANCHOR,
		/* 30 */ YY_NO_ANCHOR,
		/* 31 */ YY_NO_ANCHOR,
		/* 32 */ YY_NO_ANCHOR,
		/* 33 */ YY_NO_ANCHOR,
		/* 34 */ YY_NO_ANCHOR,
		/* 35 */ YY_NO_ANCHOR,
		/* 36 */ YY_NO_ANCHOR,
		/* 37 */ YY_NO_ANCHOR,
		/* 38 */ YY_NO_ANCHOR,
		/* 39 */ YY_NO_ANCHOR,
		/* 40 */ YY_NO_ANCHOR,
		/* 41 */ YY_NO_ANCHOR,
		/* 42 */ YY_NO_ANCHOR,
		/* 43 */ YY_NO_ANCHOR,
		/* 44 */ YY_NO_ANCHOR,
		/* 45 */ YY_NO_ANCHOR,
		/* 46 */ YY_NO_ANCHOR,
		/* 47 */ YY_NO_ANCHOR,
		/* 48 */ YY_NO_ANCHOR,
		/* 49 */ YY_NO_ANCHOR,
		/* 50 */ YY_NO_ANCHOR,
		/* 51 */ YY_NO_ANCHOR,
		/* 52 */ YY_NO_ANCHOR,
		/* 53 */ YY_NO_ANCHOR,
		/* 54 */ YY_NO_ANCHOR,
		/* 55 */ YY_NO_ANCHOR,
		/* 56 */ YY_NO_ANCHOR,
		/* 57 */ YY_NO_ANCHOR,
		/* 58 */ YY_NO_ANCHOR,
		/* 59 */ YY_NO_ANCHOR,
		/* 60 */ YY_NO_ANCHOR,
		/* 61 */ YY_NO_ANCHOR,
		/* 62 */ YY_NOT_ACCEPT,
		/* 63 */ YY_NO_ANCHOR,
		/* 64 */ YY_NO_ANCHOR,
		/* 65 */ YY_NO_ANCHOR,
		/* 66 */ YY_NO_ANCHOR,
		/* 67 */ YY_NO_ANCHOR,
		/* 68 */ YY_NO_ANCHOR,
		/* 69 */ YY_NO_ANCHOR,
		/* 70 */ YY_NOT_ACCEPT,
		/* 71 */ YY_NO_ANCHOR,
		/* 72 */ YY_NO_ANCHOR,
		/* 73 */ YY_NOT_ACCEPT,
		/* 74 */ YY_NO_ANCHOR,
		/* 75 */ YY_NO_ANCHOR,
		/* 76 */ YY_NOT_ACCEPT,
		/* 77 */ YY_NO_ANCHOR,
		/* 78 */ YY_NOT_ACCEPT,
		/* 79 */ YY_NO_ANCHOR,
		/* 80 */ YY_NO_ANCHOR,
		/* 81 */ YY_NO_ANCHOR,
		/* 82 */ YY_NO_ANCHOR,
		/* 83 */ YY_NO_ANCHOR,
		/* 84 */ YY_NO_ANCHOR,
		/* 85 */ YY_NO_ANCHOR,
		/* 86 */ YY_NO_ANCHOR,
		/* 87 */ YY_NO_ANCHOR,
		/* 88 */ YY_NO_ANCHOR,
		/* 89 */ YY_NO_ANCHOR,
		/* 90 */ YY_NO_ANCHOR,
		/* 91 */ YY_NO_ANCHOR,
		/* 92 */ YY_NO_ANCHOR,
		/* 93 */ YY_NO_ANCHOR,
		/* 94 */ YY_NO_ANCHOR,
		/* 95 */ YY_NO_ANCHOR,
		/* 96 */ YY_NO_ANCHOR,
		/* 97 */ YY_NO_ANCHOR,
		/* 98 */ YY_NO_ANCHOR,
		/* 99 */ YY_NO_ANCHOR,
		/* 100 */ YY_NO_ANCHOR,
		/* 101 */ YY_NO_ANCHOR,
		/* 102 */ YY_NO_ANCHOR,
		/* 103 */ YY_NO_ANCHOR,
		/* 104 */ YY_NO_ANCHOR,
		/* 105 */ YY_NO_ANCHOR,
		/* 106 */ YY_NO_ANCHOR,
		/* 107 */ YY_NO_ANCHOR,
		/* 108 */ YY_NO_ANCHOR,
		/* 109 */ YY_NO_ANCHOR,
		/* 110 */ YY_NO_ANCHOR,
		/* 111 */ YY_NO_ANCHOR,
		/* 112 */ YY_NO_ANCHOR,
		/* 113 */ YY_NO_ANCHOR,
		/* 114 */ YY_NO_ANCHOR,
		/* 115 */ YY_NO_ANCHOR,
		/* 116 */ YY_NO_ANCHOR,
		/* 117 */ YY_NO_ANCHOR,
		/* 118 */ YY_NO_ANCHOR,
		/* 119 */ YY_NO_ANCHOR,
		/* 120 */ YY_NO_ANCHOR,
		/* 121 */ YY_NO_ANCHOR,
		/* 122 */ YY_NO_ANCHOR,
		/* 123 */ YY_NO_ANCHOR,
		/* 124 */ YY_NO_ANCHOR,
		/* 125 */ YY_NO_ANCHOR,
		/* 126 */ YY_NO_ANCHOR,
		/* 127 */ YY_NO_ANCHOR,
		/* 128 */ YY_NO_ANCHOR,
		/* 129 */ YY_NO_ANCHOR,
		/* 130 */ YY_NO_ANCHOR,
		/* 131 */ YY_NO_ANCHOR,
		/* 132 */ YY_NO_ANCHOR,
		/* 133 */ YY_NO_ANCHOR,
		/* 134 */ YY_NO_ANCHOR,
		/* 135 */ YY_NO_ANCHOR,
		/* 136 */ YY_NO_ANCHOR,
		/* 137 */ YY_NO_ANCHOR,
		/* 138 */ YY_NO_ANCHOR,
		/* 139 */ YY_NO_ANCHOR,
		/* 140 */ YY_NO_ANCHOR,
		/* 141 */ YY_NO_ANCHOR,
		/* 142 */ YY_NO_ANCHOR,
		/* 143 */ YY_NO_ANCHOR,
		/* 144 */ YY_NO_ANCHOR,
		/* 145 */ YY_NO_ANCHOR,
		/* 146 */ YY_NO_ANCHOR,
		/* 147 */ YY_NO_ANCHOR,
		/* 148 */ YY_NO_ANCHOR,
		/* 149 */ YY_NO_ANCHOR,
		/* 150 */ YY_NO_ANCHOR,
		/* 151 */ YY_NO_ANCHOR,
		/* 152 */ YY_NO_ANCHOR,
		/* 153 */ YY_NO_ANCHOR,
		/* 154 */ YY_NO_ANCHOR,
		/* 155 */ YY_NO_ANCHOR,
		/* 156 */ YY_NO_ANCHOR,
		/* 157 */ YY_NO_ANCHOR,
		/* 158 */ YY_NO_ANCHOR,
		/* 159 */ YY_NO_ANCHOR,
		/* 160 */ YY_NO_ANCHOR,
		/* 161 */ YY_NO_ANCHOR,
		/* 162 */ YY_NO_ANCHOR
	};
	private int yy_cmap[] = unpackFromString(1,130,
"43:8,32,35,36,43:2,37,43:18,35,43,40,43:4,33,3,4,2,43,1,43,5,43,39:10,43:2," +
"7,6,8,43,42,9,16,15,12,18,21,31,29,24,44,25,10,23,11,22,20,44,17,14,19,26,2" +
"7,28,30,13,44,43,34,43,41,46,43,45:13,38,45:3,38,45,38,45:6,43:5,0:2")[0];

	private int yy_rmap[] = unpackFromString(1,163,
"0,1:7,2,3,4,5,1:2,6,1:3,7,8:2,9,8:31,1:9,10,11,12,13,14,15,16,17,14,18,19,2" +
"0,21,22,23,24,16,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,4" +
"4,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,6" +
"9,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,9" +
"4,95,8,96,97,98,99,100,101,102,103,104,105,106,107")[0];

	private int yy_nxt[][] = unpackFromString(108,47,
"1,2,3,4,5,6,7,8,9,10,63,107,147,150,108,153,71,150,155,156,157,158,74,150,1" +
"59,109,160,161,162,150:3,11,12,13,11:3,150,14,13:4,150:2,13,-1:53,15,-1,16," +
"-1:44,17,-1:49,150,77,79,80,150,18,150:17,-1:6,150:2,-1:4,150:3,-1:32,11,-1" +
":2,11:3,-1:48,14,-1:16,150:6,26,150:16,-1:6,150:2,-1:4,150:3,-1:9,150:23,-1" +
":6,150:2,-1:4,150:3,-1:9,150:3,128,150:19,-1:6,150:2,-1:4,150:3,1,53:32,54," +
"64,53,55,65,53:9,-1:9,150:15,110,150:7,-1:6,150:2,-1:4,150:3,-1,56:33,57,66" +
",58,67,57,72,57,75,56:5,-1:36,55,-1:45,70,58,67,-1:45,58,-1:44,60,78,61,69," +
"-1:45,61,-1:19,150:4,19,150:18,-1:6,150:2,-1:4,150:3,-1:39,73,-1:46,57,-1:1" +
"6,150:2,20,150:5,21,150:14,-1:6,150:2,-1:4,150:3,-1:9,57:23,-1:10,57,-1,57," +
"-1,57,1,59:33,60,68,61,69,59:9,-1:9,150,22,150:8,124,150:12,-1:6,150:2,-1:4" +
",150:3,-1:9,150:3,23,24,150:18,-1:6,150:2,-1:4,150:3,-1:9,150:3,25,150:19,-" +
"1:6,150:2,-1:4,150:3,-1:9,150:10,27,150:12,-1:6,150:2,-1:4,150:3,-1:9,150,1" +
"54,150:8,28,150:12,-1:6,150:2,-1:4,150:3,-1:9,150:4,29,150:18,-1:6,150:2,-1" +
":4,150:3,-1:9,150:9,30,150:13,-1:6,150:2,-1:4,150:3,-1:9,150,31,150:21,-1:6" +
",150:2,-1:4,150:3,-1:9,150:11,32,150:11,-1:6,150:2,-1:4,150:3,-1:9,150:6,33" +
",150:16,-1:6,150:2,-1:4,150:3,-1:9,150:8,34,150:14,-1:6,150:2,-1:4,150:3,-1" +
":9,150:14,35,150:8,-1:6,150:2,-1:4,150:3,-1:9,150:9,140,150:3,36,150:9,-1:6" +
",150:2,-1:4,150:3,-1:9,150:19,37,150:3,-1:6,150:2,-1:4,150:3,-1:9,150:8,38," +
"150:14,-1:6,150:2,-1:4,150:3,-1:9,150:9,39,150:13,-1:6,150:2,-1:4,150:3,-1:" +
"9,150:8,40,150:14,-1:6,150:2,-1:4,150:3,-1:9,150:21,41,150,-1:6,150:2,-1:4," +
"150:3,-1:9,150:9,42,150:13,-1:6,150:2,-1:4,150:3,-1:9,150:9,43,150:13,-1:6," +
"150:2,-1:4,150:3,-1:9,150:10,44,150:12,-1:6,150:2,-1:4,150:3,-1:9,150:9,45," +
"150:13,-1:6,150:2,-1:4,150:3,-1:9,150:9,46,150:13,-1:6,150:2,-1:4,150:3,-1:" +
"9,150:10,47,150:12,-1:6,150:2,-1:4,150:3,-1:9,150:9,48,150:13,-1:6,150:2,-1" +
":4,150:3,-1:9,150:5,49,150:17,-1:6,150:2,-1:4,150:3,-1:9,150:4,50,150:18,-1" +
":6,150:2,-1:4,150:3,-1:9,150:8,51,150:14,-1:6,150:2,-1:4,150:3,-1:9,150:8,5" +
"2,150:14,-1:6,150:2,-1:4,150:3,-1:9,150:13,81,150:3,111,150:5,-1:6,150:2,-1" +
":4,150:3,-1:9,150:9,82,150:13,-1:6,150:2,-1:4,150:3,-1:9,150:9,83,150:13,-1" +
":6,150:2,-1:4,150:3,-1:9,150:16,84,150:6,-1:6,150:2,-1:4,150:3,-1:9,150,85," +
"150:21,-1:6,150:2,-1:4,150:3,-1:9,150:13,86,150:9,-1:6,150:2,-1:4,150:3,-1:" +
"9,150,151,150:3,87,150:17,-1:6,150:2,-1:4,150:3,-1:9,150:9,125,150:13,-1:6," +
"150:2,-1:4,150:3,-1:9,88,150:22,-1:6,150:2,-1:4,150:3,-1:9,150:6,149,150:16" +
",-1:6,150:2,-1:4,150:3,-1:9,150:7,126,150:15,-1:6,150:2,-1:4,150:3,-1:9,150" +
":15,127,150:7,-1:6,150:2,-1:4,150:3,-1:9,150:13,89,150:9,-1:6,150:2,-1:4,15" +
"0:3,-1:9,150:3,129,150,130,150:4,90,150:12,-1:6,150:2,-1:4,150:3,-1:9,150:3" +
",152,150:19,-1:6,150:2,-1:4,150:3,-1:9,150,131,150:6,132,150:14,-1:6,150:2," +
"-1:4,150:3,-1:9,150:9,91,150:13,-1:6,150:2,-1:4,150:3,-1:9,150:9,92,150:13," +
"-1:6,150:2,-1:4,150:3,-1:9,136,150:22,-1:6,150:2,-1:4,150:3,-1:9,150,93,150" +
":21,-1:6,150:2,-1:4,150:3,-1:9,150:14,138,150:8,-1:6,150:2,-1:4,150:3,-1:9," +
"150:9,94,150:13,-1:6,150:2,-1:4,150:3,-1:9,150:9,95,150:13,-1:6,150:2,-1:4," +
"150:3,-1:9,150:9,139,150:13,-1:6,150:2,-1:4,150:3,-1:9,150:17,142,150:5,-1:" +
"6,150:2,-1:4,150:3,-1:9,150:6,143,150:16,-1:6,150:2,-1:4,150:3,-1:9,150:8,9" +
"6,150:14,-1:6,150:2,-1:4,150:3,-1:9,150:10,97,150:12,-1:6,150:2,-1:4,150:3," +
"-1:9,150:6,98,150:16,-1:6,150:2,-1:4,150:3,-1:9,150:10,99,150:12,-1:6,150:2" +
",-1:4,150:3,-1:9,150:11,100,150:11,-1:6,150:2,-1:4,150:3,-1:9,144,150:22,-1" +
":6,150:2,-1:4,150:3,-1:9,150:8,101,150:14,-1:6,150:2,-1:4,150:3,-1:9,150:22" +
",145,-1:6,150:2,-1:4,150:3,-1:9,150:10,102,150:12,-1:6,150:2,-1:4,150:3,-1:" +
"9,150:9,103,150:13,-1:6,150:2,-1:4,150:3,-1:9,150:20,146,150:2,-1:6,150:2,-" +
"1:4,150:3,-1:9,150:8,104,150:14,-1:6,150:2,-1:4,150:3,-1:9,150:9,105,150:13" +
",-1:6,150:2,-1:4,150:3,-1:9,106,150:22,-1:6,150:2,-1:4,150:3,-1:9,150:8,112" +
",113,150:13,-1:6,150:2,-1:4,150:3,-1:9,150:9,133,150:13,-1:6,150:2,-1:4,150" +
":3,-1:9,137,150:22,-1:6,150:2,-1:4,150:3,-1:9,150:9,134,150:13,-1:6,150:2,-" +
"1:4,150:3,-1:9,141,150:22,-1:6,150:2,-1:4,150:3,-1:9,150:8,114,150:11,115,1" +
"50:2,-1:6,150:2,-1:4,150:3,-1:9,150:9,135,150:13,-1:6,150:2,-1:4,150:3,-1:9" +
",150:5,116,150:17,-1:6,150:2,-1:4,150:3,-1:9,117,150:22,-1:6,150:2,-1:4,150" +
":3,-1:9,150:8,118,150:14,-1:6,150:2,-1:4,150:3,-1:9,150:8,119,150:14,-1:6,1" +
"50:2,-1:4,150:3,-1:9,150:2,120,150:20,-1:6,150:2,-1:4,150:3,-1:9,150:11,121" +
",150:11,-1:6,150:2,-1:4,150:3,-1:9,122,150:14,123,150:7,-1:6,150:2,-1:4,150" +
":3,-1:9,150:20,148,150:2,-1:6,150:2,-1:4,150:3");

	public java_cup.runtime.Symbol nextToken ()
		throws java.io.IOException {
		int yy_lookahead;
		int yy_anchor = YY_NO_ANCHOR;
		int yy_state = yy_state_dtrans[yy_lexical_state];
		int yy_next_state = YY_NO_STATE;
		int yy_last_accept_state = YY_NO_STATE;
		boolean yy_initial = true;
		int yy_this_accept;

		yy_mark_start();
		yy_this_accept = yy_acpt[yy_state];
		if (YY_NOT_ACCEPT != yy_this_accept) {
			yy_last_accept_state = yy_state;
			yy_mark_end();
		}
		while (true) {
			if (yy_initial && yy_at_bol) yy_lookahead = YY_BOL;
			else yy_lookahead = yy_advance();
			yy_next_state = YY_F;
			yy_next_state = yy_nxt[yy_rmap[yy_state]][yy_cmap[yy_lookahead]];
			if (YY_EOF == yy_lookahead && true == yy_initial) {

	 {if(yy_lexical_state == STRING || yy_lexical_state == NEWLINE)  err("String presentation error!");
	 return tok(sym.EOF, null);
    }
			}
			if (YY_F != yy_next_state) {
				yy_state = yy_next_state;
				yy_initial = false;
				yy_this_accept = yy_acpt[yy_state];
				if (YY_NOT_ACCEPT != yy_this_accept) {
					yy_last_accept_state = yy_state;
					yy_mark_end();
				}
			}
			else {
				if (YY_NO_STATE == yy_last_accept_state) {
					throw (new Error("Lexical Error: Unmatched Input."));
				}
				else {
					yy_anchor = yy_acpt[yy_last_accept_state];
					if (0 != (YY_END & yy_anchor)) {
						yy_move_end();
					}
					yy_to_mark();
					switch (yy_last_accept_state) {
					case 1:
						
					case -2:
						break;
					case 2:
						{ return tok(sym.COMMA,null); }
					case -3:
						break;
					case 3:
						{ return tok(sym.MULTI,null); }
					case -4:
						break;
					case 4:
						{ return tok(sym.LPAREN,null); }
					case -5:
						break;
					case 5:
						{ return tok(sym.RPAREN,null); }
					case -6:
						break;
					case 6:
						{ return tok(sym.DOT,null); }
					case -7:
						break;
					case 7:
						{ return tok(sym.EQ,null); }
					case -8:
						break;
					case 8:
						{ return tok(sym.LT,null); }
					case -9:
						break;
					case 9:
						{ return tok(sym.GT,null); }
					case -10:
						break;
					case 10:
						{
	return tok(sym.ID,yytext());
}
					case -11:
						break;
					case 11:
						{ }
					case -12:
						break;
					case 12:
						{
    result_s="";
    str_l=yychar;
    str_r=yychar;
    yybegin(STRING);
}
					case -13:
						break;
					case 13:
						{
	err("Error: Unclosed string.");
}
					case -14:
						break;
					case 14:
						{ 
	return tok(sym.INT,new Integer(yytext()));
}
					case -15:
						break;
					case 15:
						{ return tok(sym.LE,null); }
					case -16:
						break;
					case 16:
						{ return tok(sym.NEQ,null); }
					case -17:
						break;
					case 17:
						{ return tok(sym.GE,null); }
					case -18:
						break;
					case 18:
						{ return tok(sym.AS,null); }
					case -19:
						break;
					case 19:
						{ return tok(sym.BY,null); }
					case -20:
						break;
					case 20:
						{ return tok(sym.ON,null); }
					case -21:
						break;
					case 21:
						{ return tok(sym.OR,null); }
					case -22:
						break;
					case 22:
						{ return tok(sym.ALL,null); }
					case -23:
						break;
					case 23:
						{ return tok(sym.AND,null); }
					case -24:
						break;
					case 24:
						{ return tok(sym.ANY,null); }
					case -25:
						break;
					case 25:
						{ return tok(sym.ADD,null); }
					case -26:
						break;
					case 26:
						{ return tok(sym.ASC,null); }
					case -27:
						break;
					case 27:
						{ return tok(sym.NOT,null); }
					case -28:
						break;
					case 28:
						{ return tok(sym.SET,null); }
					case -29:
						break;
					case 29:
						{ return tok(sym.KEY,null); }
					case -30:
						break;
					case 30:
						{ return tok(sym.LIKE,null); }
					case -31:
						break;
					case 31:
						{ return tok(sym.NULL,null); }
					case -32:
						break;
					case 32:
						{ return tok(sym.DROP,null); }
					case -33:
						break;
					case 33:
						{ return tok(sym.DESC,null); }
					case -34:
						break;
					case 34:
						{ return tok(sym.CHAR,null); }
					case -35:
						break;
					case 35:
						{ return tok(sym.FROM,null); }
					case -36:
						break;
					case 36:
						{ return tok(sym.INTO,null); }
					case -37:
						break;
					case 37:
						{ return tok(sym.VIEW,null); }
					case -38:
						break;
					case 38:
						{ return tok(sym.ALTER,null); }
					case -39:
						break;
					case 39:
						{ return tok(sym.TABLE,null); }
					case -40:
						break;
					case 40:
						{ return tok(sym.ORDER,null); }
					case -41:
						break;
					case 41:
						{ return tok(sym.INDEX,null); }
					case -42:
						break;
					case 42:
						{ return tok(sym.WHERE,null); }
					case -43:
						break;
					case 43:
						{ return tok(sym.DELETE,null); }
					case -44:
						break;
					case 44:
						{ return tok(sym.SELECT,null); }
					case -45:
						break;
					case 45:
						{ return tok(sym.CREATE,null); }
					case -46:
						break;
					case 46:
						{ return tok(sym.ESCAPE,null); }
					case -47:
						break;
					case 47:
						{ return tok(sym.INSERT,null); }
					case -48:
						break;
					case 48:
						{ return tok(sym.UPDATE,null); }
					case -49:
						break;
					case 49:
						{ return tok(sym.VALUES,null); }
					case -50:
						break;
					case 50:
						{ return tok(sym.PRIMARY,null); }
					case -51:
						break;
					case 51:
						{ return tok(sym.INTEGER,null); }
					case -52:
						break;
					case 52:
						{ return tok(sym.VARCHAR,null); }
					case -53:
						break;
					case 53:
						{ result_s += yytext(); str_r += 1;}
					case -54:
						break;
					case 54:
						{ yybegin(YYINITIAL); return tok(sym.STRING,result_s);  }
					case -55:
						break;
					case 55:
						{ newline(); yybegin(YYINITIAL); err("Error: Unclosed string."); }
					case -56:
						break;
					case 56:
						{ err("Error: Illegal escape sequence.");}
					case -57:
						break;
					case 57:
						{ str_r += result_s.length(); result_s += escape_sequence(yytext());}
					case -58:
						break;
					case 58:
						{newline();  yybegin(NEWLINE); }
					case -59:
						break;
					case 59:
						{ err("Error: Illegal sequence."); }
					case -60:
						break;
					case 60:
						{ yybegin(STRING); }
					case -61:
						break;
					case 61:
						{newline();}
					case -62:
						break;
					case 63:
						{
	return tok(sym.ID,yytext());
}
					case -63:
						break;
					case 64:
						{ result_s += yytext(); str_r += 1;}
					case -64:
						break;
					case 65:
						{ newline(); yybegin(YYINITIAL); err("Error: Unclosed string."); }
					case -65:
						break;
					case 66:
						{ err("Error: Illegal escape sequence.");}
					case -66:
						break;
					case 67:
						{newline();  yybegin(NEWLINE); }
					case -67:
						break;
					case 68:
						{ err("Error: Illegal sequence."); }
					case -68:
						break;
					case 69:
						{newline();}
					case -69:
						break;
					case 71:
						{
	return tok(sym.ID,yytext());
}
					case -70:
						break;
					case 72:
						{ err("Error: Illegal escape sequence.");}
					case -71:
						break;
					case 74:
						{
	return tok(sym.ID,yytext());
}
					case -72:
						break;
					case 75:
						{ err("Error: Illegal escape sequence.");}
					case -73:
						break;
					case 77:
						{
	return tok(sym.ID,yytext());
}
					case -74:
						break;
					case 79:
						{
	return tok(sym.ID,yytext());
}
					case -75:
						break;
					case 80:
						{
	return tok(sym.ID,yytext());
}
					case -76:
						break;
					case 81:
						{
	return tok(sym.ID,yytext());
}
					case -77:
						break;
					case 82:
						{
	return tok(sym.ID,yytext());
}
					case -78:
						break;
					case 83:
						{
	return tok(sym.ID,yytext());
}
					case -79:
						break;
					case 84:
						{
	return tok(sym.ID,yytext());
}
					case -80:
						break;
					case 85:
						{
	return tok(sym.ID,yytext());
}
					case -81:
						break;
					case 86:
						{
	return tok(sym.ID,yytext());
}
					case -82:
						break;
					case 87:
						{
	return tok(sym.ID,yytext());
}
					case -83:
						break;
					case 88:
						{
	return tok(sym.ID,yytext());
}
					case -84:
						break;
					case 89:
						{
	return tok(sym.ID,yytext());
}
					case -85:
						break;
					case 90:
						{
	return tok(sym.ID,yytext());
}
					case -86:
						break;
					case 91:
						{
	return tok(sym.ID,yytext());
}
					case -87:
						break;
					case 92:
						{
	return tok(sym.ID,yytext());
}
					case -88:
						break;
					case 93:
						{
	return tok(sym.ID,yytext());
}
					case -89:
						break;
					case 94:
						{
	return tok(sym.ID,yytext());
}
					case -90:
						break;
					case 95:
						{
	return tok(sym.ID,yytext());
}
					case -91:
						break;
					case 96:
						{
	return tok(sym.ID,yytext());
}
					case -92:
						break;
					case 97:
						{
	return tok(sym.ID,yytext());
}
					case -93:
						break;
					case 98:
						{
	return tok(sym.ID,yytext());
}
					case -94:
						break;
					case 99:
						{
	return tok(sym.ID,yytext());
}
					case -95:
						break;
					case 100:
						{
	return tok(sym.ID,yytext());
}
					case -96:
						break;
					case 101:
						{
	return tok(sym.ID,yytext());
}
					case -97:
						break;
					case 102:
						{
	return tok(sym.ID,yytext());
}
					case -98:
						break;
					case 103:
						{
	return tok(sym.ID,yytext());
}
					case -99:
						break;
					case 104:
						{
	return tok(sym.ID,yytext());
}
					case -100:
						break;
					case 105:
						{
	return tok(sym.ID,yytext());
}
					case -101:
						break;
					case 106:
						{
	return tok(sym.ID,yytext());
}
					case -102:
						break;
					case 107:
						{
	return tok(sym.ID,yytext());
}
					case -103:
						break;
					case 108:
						{
	return tok(sym.ID,yytext());
}
					case -104:
						break;
					case 109:
						{
	return tok(sym.ID,yytext());
}
					case -105:
						break;
					case 110:
						{
	return tok(sym.ID,yytext());
}
					case -106:
						break;
					case 111:
						{
	return tok(sym.ID,yytext());
}
					case -107:
						break;
					case 112:
						{
	return tok(sym.ID,yytext());
}
					case -108:
						break;
					case 113:
						{
	return tok(sym.ID,yytext());
}
					case -109:
						break;
					case 114:
						{
	return tok(sym.ID,yytext());
}
					case -110:
						break;
					case 115:
						{
	return tok(sym.ID,yytext());
}
					case -111:
						break;
					case 116:
						{
	return tok(sym.ID,yytext());
}
					case -112:
						break;
					case 117:
						{
	return tok(sym.ID,yytext());
}
					case -113:
						break;
					case 118:
						{
	return tok(sym.ID,yytext());
}
					case -114:
						break;
					case 119:
						{
	return tok(sym.ID,yytext());
}
					case -115:
						break;
					case 120:
						{
	return tok(sym.ID,yytext());
}
					case -116:
						break;
					case 121:
						{
	return tok(sym.ID,yytext());
}
					case -117:
						break;
					case 122:
						{
	return tok(sym.ID,yytext());
}
					case -118:
						break;
					case 123:
						{
	return tok(sym.ID,yytext());
}
					case -119:
						break;
					case 124:
						{
	return tok(sym.ID,yytext());
}
					case -120:
						break;
					case 125:
						{
	return tok(sym.ID,yytext());
}
					case -121:
						break;
					case 126:
						{
	return tok(sym.ID,yytext());
}
					case -122:
						break;
					case 127:
						{
	return tok(sym.ID,yytext());
}
					case -123:
						break;
					case 128:
						{
	return tok(sym.ID,yytext());
}
					case -124:
						break;
					case 129:
						{
	return tok(sym.ID,yytext());
}
					case -125:
						break;
					case 130:
						{
	return tok(sym.ID,yytext());
}
					case -126:
						break;
					case 131:
						{
	return tok(sym.ID,yytext());
}
					case -127:
						break;
					case 132:
						{
	return tok(sym.ID,yytext());
}
					case -128:
						break;
					case 133:
						{
	return tok(sym.ID,yytext());
}
					case -129:
						break;
					case 134:
						{
	return tok(sym.ID,yytext());
}
					case -130:
						break;
					case 135:
						{
	return tok(sym.ID,yytext());
}
					case -131:
						break;
					case 136:
						{
	return tok(sym.ID,yytext());
}
					case -132:
						break;
					case 137:
						{
	return tok(sym.ID,yytext());
}
					case -133:
						break;
					case 138:
						{
	return tok(sym.ID,yytext());
}
					case -134:
						break;
					case 139:
						{
	return tok(sym.ID,yytext());
}
					case -135:
						break;
					case 140:
						{
	return tok(sym.ID,yytext());
}
					case -136:
						break;
					case 141:
						{
	return tok(sym.ID,yytext());
}
					case -137:
						break;
					case 142:
						{
	return tok(sym.ID,yytext());
}
					case -138:
						break;
					case 143:
						{
	return tok(sym.ID,yytext());
}
					case -139:
						break;
					case 144:
						{
	return tok(sym.ID,yytext());
}
					case -140:
						break;
					case 145:
						{
	return tok(sym.ID,yytext());
}
					case -141:
						break;
					case 146:
						{
	return tok(sym.ID,yytext());
}
					case -142:
						break;
					case 147:
						{
	return tok(sym.ID,yytext());
}
					case -143:
						break;
					case 148:
						{
	return tok(sym.ID,yytext());
}
					case -144:
						break;
					case 149:
						{
	return tok(sym.ID,yytext());
}
					case -145:
						break;
					case 150:
						{
	return tok(sym.ID,yytext());
}
					case -146:
						break;
					case 151:
						{
	return tok(sym.ID,yytext());
}
					case -147:
						break;
					case 152:
						{
	return tok(sym.ID,yytext());
}
					case -148:
						break;
					case 153:
						{
	return tok(sym.ID,yytext());
}
					case -149:
						break;
					case 154:
						{
	return tok(sym.ID,yytext());
}
					case -150:
						break;
					case 155:
						{
	return tok(sym.ID,yytext());
}
					case -151:
						break;
					case 156:
						{
	return tok(sym.ID,yytext());
}
					case -152:
						break;
					case 157:
						{
	return tok(sym.ID,yytext());
}
					case -153:
						break;
					case 158:
						{
	return tok(sym.ID,yytext());
}
					case -154:
						break;
					case 159:
						{
	return tok(sym.ID,yytext());
}
					case -155:
						break;
					case 160:
						{
	return tok(sym.ID,yytext());
}
					case -156:
						break;
					case 161:
						{
	return tok(sym.ID,yytext());
}
					case -157:
						break;
					case 162:
						{
	return tok(sym.ID,yytext());
}
					case -158:
						break;
					default:
						yy_error(YY_E_INTERNAL,false);
					case -1:
					}
					yy_initial = true;
					yy_state = yy_state_dtrans[yy_lexical_state];
					yy_next_state = YY_NO_STATE;
					yy_last_accept_state = YY_NO_STATE;
					yy_mark_start();
					yy_this_accept = yy_acpt[yy_state];
					if (YY_NOT_ACCEPT != yy_this_accept) {
						yy_last_accept_state = yy_state;
						yy_mark_end();
					}
				}
			}
		}
	}
}
